package com.ssy.lingxi.platform.manage.entity.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 自营商家资讯历史实体类
 * @author fhj
 * @version 2.0.0
 * @date 2020/9/24
 */
@Data
@Entity
@Table(schema = "public", name = "man_member_information_history")
public class MemberInformationHistory implements Serializable {
    private static final long serialVersionUID = 6950495421234105695L;

    @ApiModelProperty(value = "主键id")
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "member_information_history_seq")
    @SequenceGenerator(sequenceName = "man_member_information_history_seq", name = "member_information_history_seq", allocationSize = 1)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "资讯ID")
    private Long informationId;

    @ApiModelProperty(value = "自营商家会员ID")
    private Long selfMemberId;

    @ApiModelProperty(value = "创建时间")
    private Long createTime = System.currentTimeMillis();
}
